package cartoon.room.read.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.List;

import model.CarttonKKDirectoryModel;

@Entity(tableName = "cartoonreadhistorymodel")
public class CartoonReadHistoryModel {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
    private int id;

    @ColumnInfo(name = "type", typeAffinity = ColumnInfo.INTEGER)
    private int type;

    @ColumnInfo(name = "kkid", typeAffinity = ColumnInfo.INTEGER)
    private int kkid;

    @ColumnInfo(name = "lryid", typeAffinity = ColumnInfo.TEXT)
    private String lryid;


    @ColumnInfo(name = "lrylist", typeAffinity = ColumnInfo.TEXT)
    private String lrylist;


    @ColumnInfo(name = "title", typeAffinity = ColumnInfo.TEXT)
    private String title;

    @ColumnInfo(name = "name", typeAffinity = ColumnInfo.TEXT)
    private String name;

    @ColumnInfo(name = "kklist", typeAffinity = ColumnInfo.TEXT)
    private String kklist;



    @ColumnInfo(name = "pic", typeAffinity = ColumnInfo.TEXT)
    private String pic;

    public CartoonReadHistoryModel(int id, int type, int kkid, String kklist, String name, String title ,String pic ,String x) {
        this.id = id;
        this.type = type;
        this.kkid = kkid;
        this.kklist = kklist;
        this.name = name;
        this.title = title;
        this.pic = pic;
    }


    public CartoonReadHistoryModel(int id, int type, String lryid,  String name, String title ,String pic) {
        this.id = id;
        this.type = type;
        this.lryid = lryid;
        this.lrylist = lrylist;
        this.name = name;
        this.title = title;
        this.pic = pic;
    }


    @Override
    public String toString() {
        return "CartoonReadHistoryModel{" +
                "id=" + id +
                ", type=" + type +
                ", kkid=" + kkid +
                ", lryid='" + lryid + '\'' +
                ", lrylist='" + lrylist + '\'' +
                ", title='" + title + '\'' +
                ", name='" + name + '\'' +
                ", kklist='" + kklist + '\'' +
                '}';
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLrylist() {
        return lrylist;
    }

    public void setLrylist(String lrylist) {
        this.lrylist = lrylist;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getKkid() {
        return kkid;
    }

    public void setKkid(int kkid) {
        this.kkid = kkid;
    }

    public String getLryid() {
        return lryid;
    }

    public void setLryid(String lryid) {
        this.lryid = lryid;
    }

    public String getKklist() {
        return kklist;
    }

    public void setKklist(String kklist) {
        this.kklist = kklist;
    }

}
